Skip to content

refactor(stackblitz): move html playgrounds to node and vite #4062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

brandyscarney
Copy link
Member

@brandyscarney brandyscarney commented Mar 31, 2025

This PR migrates the JavaScript playgrounds to use Node and Vite.

Playgrounds I suggest testing:

Copy link

vercel bot commented Mar 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ionic-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2025 7:13pm

const indexHtml = 'index.html';
const files = {
'package.json': JSON.stringify(package_json, null, 2),
'index.ts': defaultFiles[0],
[indexHtml]: defaultFiles[1],
'theme/variables.css': defaultFiles[2],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally I moved index.ts and theme/variables.css under src/ like the other frameworks but if we did that we would have to update all of the playgrounds where these files are overridden like:

'index.html': javascript_index_html,
'index.ts': javascript_index_ts,
'theme/variables.css': variables_css,

I can do this if desired but this would change ~80 files.

@brandyscarney brandyscarney marked this pull request as ready for review July 3, 2025 19:08
@brandyscarney brandyscarney requested a review from a team as a code owner July 3, 2025 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant